Skip to content

feat(storage): add fuse_tag table function to list snapshot tags#19664

Merged
zhyass merged 3 commits intodatabendlabs:mainfrom
zhyass:feat_stream
Apr 7, 2026
Merged

feat(storage): add fuse_tag table function to list snapshot tags#19664
zhyass merged 3 commits intodatabendlabs:mainfrom
zhyass:feat_stream

Conversation

@zhyass
Copy link
Copy Markdown
Member

@zhyass zhyass commented Apr 4, 2026

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

Adds fuse_tag('database', 'table') table function to list snapshot tags on a FUSE table.

Previously there was no way to inspect which tags exist on a table . Following the fuse_* table function convention
(fuse_snapshot, fuse_segment, fuse_block), this adds fuse_tag as the standard way to query snapshot tags.

Returns columns:

  • name — tag name
  • snapshot_location — snapshot file the tag points to
  • expire_at — expiration timestamp (nullable, set when RETAIN is used)

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@zhyass zhyass requested review from SkyFan2002 and dantengsky April 4, 2026 04:20
@github-actions github-actions Bot added the pr-feature this PR introduces a new feature to the codebase label Apr 4, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3598846fe8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/query/storages/fuse/src/table_functions/fuse_tag.rs
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd9362a5d6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/query/storages/fuse/src/table_functions/fuse_tag.rs
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@zhyass zhyass added this pull request to the merge queue Apr 7, 2026
Merged via the queue into databendlabs:main with commit 141ae60 Apr 7, 2026
91 checks passed
@zhyass zhyass deleted the feat_stream branch April 7, 2026 06:10
zhyass added a commit to zhyass/databend-docs that referenced this pull request Apr 16, 2026
Add documentation for the new fuse_tag table function that lists snapshot tags on a FUSE table, corresponding to databendlabs/databend#19664.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Chasen-Zhang added a commit to databendlabs/databend-docs that referenced this pull request Apr 16, 2026
* docs: add FUSE_TAG system function documentation

Add documentation for the new fuse_tag table function that lists snapshot tags on a FUSE table, corresponding to databendlabs/databend#19664.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: fix FUSE_TAG examples to use correct ALTER TABLE CREATE TAG syntax

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Q <787025321@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature this PR introduces a new feature to the codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants